class Consbank implements Ilobank{
	IAccount first;
	Ilobank rest;
	
	Consbank(IAccount first, Ilobank rest){
		this.first = first;
		this.rest = rest;
	}
	
	public boolean checkLobForOneCase(Checker c){
		return first.checkMe(c) || rest.checkLobForOneCase(c);
	}
	
	public int countTrueCases(Checker c){
		if (first.checkMe(c))
			return 1 + rest.countTrueCases(c);
		else return rest.countTrueCases(c);
	}
	
	public Ilobank filterTrueCases(Checker c){
		if (first.checkMe(c))
			return new Consbank(first, rest.filterTrueCases(c));
		else return rest.filterTrueCases(c);	
	}
}